﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HZH_Controls;
using HZH_Controls.Controls;
using 渐变.common;

namespace 渐变.customercolumn
{
    public partial class GridImageCell : UserControl, IDataGridViewCustomCell
    {
        DataRow row;
        public GridImageCell()
        {
            InitializeComponent();
        }

        public void SetBindSource(object obj)
        {
            if (obj != null)
            {
                row = (DataRow)obj;
            }
        }

        private void GridImageCell_Load(object sender, EventArgs e)
        {
            if (row != null)
            {
               ptbImg.Image =  UniversalUtil.Base64ToImage(row["CImg"].ToString());
            }
        }
    }
}
